package org.yray.io.gcdemo;

import java.util.ArrayList;
import java.util.List;

public class StringTest {
    public static void main(String[] args) throws InterruptedException {

        /*List<String> list=new ArrayList<>();

        for(int i=0;i<1200000;i++)
        {
            list.add(new String("abcdefgkjdsfoiieosdfjjasdifdswfsief").intern());
        }

        Thread.sleep(1000000);*/
        String a="111";
        String b=new String("111");
        System.out.println(a.hashCode());
        System.out.println(b.hashCode());
    }

}
